# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=honssh
pkgver=204.821ce87
pkgrel=3
groups=('blackarch' 'blackarch-honeypot')
pkgdesc='A high-interaction Honey Pot solution designed to log all SSH communications between a client and server.'
arch=('any')
source='https://github.com/tnich/honssh'
license=('BSD')
depends=('python2')
makedepends=('git')
source=("git+https://github.com/tnich/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README

  rm -rf README

  cp -a * "$pkgdir/usr/share/$pkgname"
}

